/**
 * <p>
 *
 * @Author：Roy
 * @Description：空间
 * @Date：Create by 2023-11-23 10:29:25
 */
import request from '@/utils/request'

const sceneRoom = {
  // 分页查询空间
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/queryPage',
      method: 'post',
      data
    })
  },
  // 查询空间列表
  queryRoomList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/queryList',
      method: 'post',
      data
    })
  },
  // 查询roomDetail
  queryRoomDetail(id) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/queryRoomDetail',
      method: 'GET',
      params: { id }
    })
  },
  // 新增空间
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/add',
      method: 'post',
      data
    })
  },
  // 编辑空间
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/update',
      method: 'post',
      data
    })
  },
  // 删除空间
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除空间
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneRoom/batchDelete',
      method: 'post',
      data
    })
  }
}

export default sceneRoom
